<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTCommentTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('t_comment', function (Blueprint $table) {
           
            $table->increments('id');
            $table->bigInteger('uid');
            $table->bigInteger('gid');
            $table->tinyInteger('level') -> default(0);
            $table->tinyInteger('read') -> default(0);
            $table->tinyInteger('status') -> default(0);
            $table->string('content') -> default('');
            $table->string('reply') -> default('');
            $table->string('rtime') -> default('');
            $table->string('order_num');
            $table->string('time');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
         Schema::drop('t_comment');
    }
}
